<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<?php
$arr = array(); ?>
<html>
<meta charset = utf-8>
<head>
	<title>put</title>
</head>
<body>
<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; $arr[] = array("name"=>$vo['name'],"grade"=>$vo['grade'],"term"=>$vo['term'],"subject"=>$vo['subject'],"score"=>$vo['score']); endforeach; endif; else: echo "" ;endif; ?>
<?php
echo json_encode(array('student'=> array('data'=>$arr))); ?>
</body>
</html>